package com.spvs.job.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.spvs.common.core.annotation.Excel;
import com.spvs.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 点检计划对象 equip_point_plan_record
 *
 * @author supervision
 * @date 2024-06-09
 */
public class EquipPointPlanRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 点检计划编码 */
    private Long id;

    /** 计划名称 */
    @Excel(name = "计划名称")
    private String name;

    /** 计划内容 */
    @Excel(name = "计划内容")
    private String content;

    /** 设备编码 */
    @Excel(name = "设备编码")
    private String equipmentCode;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String equipmentName;

    /** 周期 */
    @Excel(name = "周期")
    private String cycle;

    /** 负责人 */
    @Excel(name = "负责人")
    private String liablePerson;

    /** 是否生效 */
    @Excel(name = "是否生效")
    private Long state;

    /** 生效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 归属部门 */
    @Excel(name = "归属部门")
    private Long deptId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setEquipmentCode(String equipmentCode)
    {
        this.equipmentCode = equipmentCode;
    }

    public String getEquipmentCode()
    {
        return equipmentCode;
    }
    public void setEquipmentName(String equipmentName)
    {
        this.equipmentName = equipmentName;
    }

    public String getEquipmentName()
    {
        return equipmentName;
    }
    public void setCycle(String cycle)
    {
        this.cycle = cycle;
    }

    public String getCycle()
    {
        return cycle;
    }
    public void setLiablePerson(String liablePerson)
    {
        this.liablePerson = liablePerson;
    }

    public String getLiablePerson()
    {
        return liablePerson;
    }
    public void setState(Long state)
    {
        this.state = state;
    }

    public Long getState()
    {
        return state;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("content", getContent())
            .append("equipmentCode", getEquipmentCode())
            .append("equipmentName", getEquipmentName())
            .append("cycle", getCycle())
            .append("liablePerson", getLiablePerson())
            .append("state", getState())
            .append("createDate", getCreateDate())
            .append("remark", getRemark())
            .append("deptId", getDeptId())
            .toString();
    }
}
